package CompositePattern;

public class FileClass extends AbstractComponent{//叶子节点
    private String fileName;

    public FileClass(String fileName) {
        this.fileName = fileName;
    }


    @Override
    public void killVirus() {
        System.out.println("开始病毒查杀文件："+fileName);
    }
}
